﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="Update.aspx.cs" Inherits="WebApp.Management._Summary.Update" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div style="width:70%; float:left;">
     <div>
         <asp:Button ID="_ctlBtnSave" runat="server" Text="保存" 
             onclick="_ctlBtnSave_Click" />
     </div>
      <div>
        标题:
      </div>
      <div>
          <asp:TextBox ID="_ctlEditTitle" runat="server" Width="100%"></asp:TextBox>
      </div>
      <div>
        序号:
      </div>
      <div>
          <asp:TextBox ID="_ctlEditOrder" runat="server" Width="100%"></asp:TextBox>
      </div>
      <div>
        内容:
      </div>
      <div>
          <asp:TextBox ID="_ctlEditContent" runat="server" Width="100%" Height="500px" TextMode="MultiLine"></asp:TextBox>
      </div>
      <asp:HiddenField ID="_ctlHiddenId" runat="server" />
    </div>
    <div style="width:30%; float:left;">
        <asp:Repeater ID="_ctlRepeater" runat="server" 
            onitemcommand="_ctlRepeater_ItemCommand">
        <HeaderTemplate>
            <table width="100%" border="1">
            <tr>
                <th>序号</th>
                <th>标题</th>
                <th>&nbsp;</th>
            </tr>
        </HeaderTemplate>

        <ItemTemplate>
            <tr>
                <td>
                    <%# Eval("Order") %>
                </td>
                <td>
                    <%# Eval("Title") %>
                </td>
                 <td>
                    <a href='./Update.aspx?id=<%#Eval("id")%>'>编辑</a>
                    <asp:LinkButton ID="_ctlBtnDelete" runat="server" CommandArgument='<%#Eval("id")%>' CommandName="delete">删除</asp:LinkButton>
                 </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
        </asp:Repeater>
    </div>
    </div>
    </form>
</body>
</html>
